Error processing SSI file
LEADTOOLS Caching (Leadtools.Caching assembly)

Show in webframe

Add<T>(String,T,DateTime,String) Method






Unique identifier of the cache item.
Data for the cache item.
Absolute expiration date to use.
Optional name of a region in cache.
Adds a new item into the cache using the specified absolute expiration data and region name.
Syntax
'Declaration
 
Public Overloads Overridable Function Add(Of T)( _
   ByVal key As String, _
   ByVal value As T, _
   ByVal absoluteExpiration As Date, _
   ByVal regionName As String _
) As Boolean
'Usage
 
Dim instance As ObjectCache
Dim key As String
Dim value As T
Dim absoluteExpiration As Date
Dim regionName As String
Dim value As Boolean
 
value = instance.Add(Of T)(key, value, absoluteExpiration, regionName)
public<T> boolean add(String key, T value, Class<?> classOfT, Date absoluteExpiration, String regionName)
            
public:
virtual bool Addgeneric<typename T>
( 
   String^ key,
   T^ value,
   DateTime absoluteExpiration,
   String^ regionName
) 

Parameters

key
Unique identifier of the cache item.
value
Data for the cache item.
absoluteExpiration
Absolute expiration date to use.
regionName
Optional name of a region in cache.

Type Parameters

T

Return Value

true if the item was added successfully, false if there is an item in the cache that has the same key.
Requirements

Target Platforms

See Also

Reference

ObjectCache Class
ObjectCache Members
Overload List

Error processing SSI file
Leadtools.Caching requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features